'use strict';

var path = require('path');
var webpack = require('webpack');
module.exports = {
    mode: 'production', //'production', 'development'
    entry: {
        server: './server.js',
        mylogger: './mylogger.js'
    },
    externals: ['@terminus-term/node-pty', 'chokidar', 'fs', 'path', 'child_process'],
    target: 'node',
    output: {
        path: path.resolve(__dirname, '.'),
        filename: '[name].bundle.js',
        library: 'appServer',
        libraryTarget: 'umd'
    },
    node: {
        __dirname: true
    },
    optimization: {
        minimize: false
    }
};